Finds the first parent of a given type for a particular FrameworkElement
Namespace:
C1.SilverlightAssembly: C1.Silverlight (in C1.Silverlight.dll)
Syntax
C# |
---|
public static T FindParent<T>( this FrameworkElement elem ) where T : FrameworkElement |
Visual Basic |
---|
<ExtensionAttribute> _ Public Shared Function FindParent(Of T As FrameworkElement) ( _ elem As FrameworkElement _ ) As T |
Parameters
- elem
- Type: System.Windows..::..FrameworkElement
Type Parameters
- T